/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package control;

/**
 *
 * @author Guilherme
 */

import database.Status;
import interfaceGrafica.Principal;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

public class Start
{

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args)
    {
            Principal.main(null);
    }
        
    public static void main2(String[] args)
    {
        ResultSet rs = Status.itensAtrsados();
        try
        {
            while (rs.next())
                   {
                       System.out.println(rs.getString("usuarioid") + "\t  " + rs.getString("pnome") + "\t  " +
                               rs.getString("sobrenome") + "\t  " + rs.getString("titulo") + "\t  " + rs.getString("autores") + "\t  "
                               + rs.getString("nro"));
                   }
        } catch (SQLException ex)
        {
            Logger.getLogger(Start.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
